package com.gupao.pattern.proxy.dbroute;

public class OrderService implements IOrderService {

    private OrderDao orderDao;

    public OrderService(){
        orderDao=new OrderDao();
    }

    public int save(Order order){
        System.out.println("OrderService调用orderDao创建订单");
        return this.orderDao.insert(order);
    }
}
